package config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 与SAP连接配置
 *
 * @author jay
 */
@Configuration
public class SAPConnConfig {
    private static Logger logger = LoggerFactory.getLogger(SAPConnConfig.class);
    private static final String ABAP_AS_POOLED = "ABAP_AS_WITH_POOL";

    @Value("${jco.client.ashost}")
    private String ashost;//sap IP 地址

    @Value("${jco.client.sysnr}")
    private String sysnr;//实例 00

    @Value("${jco.client.client}")
    private String client;//客户端 202 800等

    @Value("${jco.client.user}")
    private String user;//用户名

    @Value("${jco.client.passwd}")
    private String passwd; //密码

    @Value("${jco.client.lang}")
    private String lang;//语言

    public String getAshost() {
        return ashost;
    }

    public void setAshost(String ashost) {
        this.ashost = ashost;
    }

    public String getSysnr() {
        return sysnr;
    }

    public void setSysnr(String sysnr) {
        this.sysnr = sysnr;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }
}